package com.test.spring.test.xml.bean;


import com.test.spring.test.xml.bean.domain.Person;
import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean<Person> {
	@Override
	public Person getObject() throws Exception {
		Person person=new Person();
		person.setName("zhangsan");
		return person;
	}

	@Override
	public Class<Person> getObjectType() {
		return Person.class;
	}
}
